package com.xyzh.stj.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xyzh.application.base.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 组织机构
 * </p>
 *
 * @author @JZB
 * @since 2023-10-29
 */
@Getter
@Setter
@TableName("organization")
@ApiModel(value = "OrganizationEntity对象", description = "组织机构")
public class OrganizationEntity extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.NONE)
    private String id;

    @ApiModelProperty("父id")
    private String pid;

    @ApiModelProperty("组织名称")
    private String name;

    @ApiModelProperty("排序")
    private int sortkey;

    @ApiModelProperty("机构代码")
    private String code;

}
